import matplotlib.pyplot as plt

# 预测价格
predicted_prices = [15175.073269317887, 4866.106270553486, 3531.77300660236, 13328.2607610938, 14873.979838401166]
# 实际价格
actual_prices = [15200.0, 4200.0, 4000.0, 13300.0, 13100.0]

# 绘制散点图
plt.scatter(range(len(predicted_prices)), predicted_prices, label='Predicted Prices')
plt.scatter(range(len(actual_prices)), actual_prices, label='Actual Prices')
plt.xlabel('Data Points')
plt.ylabel('Prices')
plt.title('Comparison of Predicted and Actual Prices')
plt.legend()
plt.show()